.wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;

  header,
  footer {
    // background: #82caff;
    flex: 0 0 6em;
    border: 1px solid #ccc;
  }
}

.body {
  display: flex;
  flex: 1;
  flex-direction: column;

  main {
    flex: 1;
    // background: #fecccc;
    border: 1px solid #ccc;
  }
  aside,
  nav {
    flex: 0 0 12em;
    // background: #c9c;
    border: 1px solid #ccc;
  }
  nav {
    order: -1;
  }
}

@media (min-width: 768px) {
  .body {
    flex-direction: row;
  }
}
